package exception;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class UncheckedExcept {
		public static void main(String[] args) throws FileNotFoundException{
			File file  = new File("test");
		
				InputStream is = new FileInputStream(file);
			
			
			try{
				
				
				
				System.out.println("hi");
				System.out.println("hi1");
				int k =1/0;
				System.out.println("hi222");
			}catch(NullPointerException e)
			{
				System.out.println("it is np");
				e.printStackTrace();
			}catch(ArithmeticException e)
			{
				System.out.println("it is aritmatic");
				e.printStackTrace();
			}catch(ClassCastException e)
			{
				e.printStackTrace();
			}
			
			
			System.out.println("after try catch");
		}
}
